<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    body {
      background: rgba(0, 0, 0, 0.8);
      color: #fff;
    }
    .left {
      width: 628px;
      background:#fff;
      color: black;
    }
    .setting-area {
      user-select: none;
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: 400;
    }
    /* .btn,
    .btn:hover,
    .btn:focus {
      cursor: pointer;
      width: 26px;
      height: 26px;
      line-height: 26px;
      vertical-align: middle;
      display: inline-block;
      padding: 0;
      font-weight: normal;
      min-width: 0;
      background: none;
      border: none;
      

      margin: 0 3px;
    } */
    .btn.disabled {
      
      background: none;
    }
    .disabled {
      color:rgba(0,0,0,0.3);
      background: none;
    }
    .modal-wrapper {
      display: flex;
    }
    .right {
      width: 320px;
      padding: 16px 60px;
      position: relative;
      background:#fff;
      color:black;
    }
    .tab {
      display: flex;
    }
    .tab li {
      font-size: 16px;
      list-style: none;
      line-height: 34px;
      font-weight: 400;
      margin-right: 50px;
      user-select: none;
      cursor: pointer;
    }
    .tab-content{
      display: none;
    }
    .tab li.active {
      font-weight: bold;
      border-bottom: 4px solid #33383c;
    }
    .cutoutEditCanv as {
      background-image: url("@/assets/images/imgTool/grid.jpg");
      background-size: 40px 40px;
      background-repeat: repeat;
    }

    .canvas-wrapper {
      position: relative;
      cursor: default;
    }
    .canvas-wrapper .cursor {
      border: 1px solid #33383c;
      position: absolute;
    }
    .tab-content {
      user-select: none;
      padding-top: 60px;
      font-size: 14px;
      font-weight: 400;

      position: relative;
    }
    .container {
      width: 1000px;
      margin: 0 auto;
    }
    #canvas {
      background-image: url("./imgs/grid.jpg");
      background-size: 40px 40px;
      background-repeat: repeat;
    }
  </style>

  <body>
    <div class="container">
      <div class="canvas-container">
        <div class="modal-wrapper">
          <div class="left" id="leftWrapper">
            <div class="canvas-wrapper" id="canvasWrapper">
              <div class="cursor" id="cursor"></div>
              <canvas
                class="cutoutEditCanvas"
                id="canvas"
                width="500"
                height="362"
              ></canvas>
            </div>
            <div class="setting-area" style="height: 40px;">
              <span style="margin-right: 30px">
                <span id="forward" style="margin-right: 5px;cursor:pointer;" class="disabled">
                  <= 后退
                </span>
                <span id="backward" class="disabled" style="cursor:pointer;">前进 =></span></span
              ></span>

              <button id="zoomOut" class="btn" style="cursor:pointer;">缩小</button>
              <!-- {`${parseInt(`${scale * 100}`, 10)}%`} -->
              <span id="scaleWrapper"></span>
              <button class="btn" id="zoomIn" style="cursor:pointer;">放大</button>
            </div>
          </div>
          <div class="right">
            <ul class="tab" id="tabHeader">
              <li operate="erase" class="active">擦除</li>
              <li operate="restore">恢复</li>
            </ul>
            <div class="content" id="tabContent">
              <div class="tab-content" style="display: block;">
                画笔大小
                <div class="slider">
                  <input type="range" min="5" max="100" id="eraseSlider" />
                  <!-- <Slider min={5} max={100} value={ activeOperate===OperateTypes.ERASE ? eraseBrushSize : restoreBrushSize }
                                onChange={this.handleChange}></Slider> -->
                </div>
              </div>
              <div class="tab-content">
                画笔大小
                <div class="slider">
                  <input type="range" min="5" max="100" id="restoreSlider" />
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>
  <script src="./index.js"></script>
</html>
